LC_EVENT_PAINT Home

LiteCAD generates LC_EVENT_PAINT event when a view is redrawn in a graphics window. The event is generated twice, before and after a drawing is being redrawn.

The following properties are used for this event type:

Property Description
LC_PROP_EVENT_TYPE Value LC_EVENT_PAINT
LC_PROP_EVENT_WND Handle to a graphics window
LC_PROP_EVENT_DRW Handle to a drawing
LC_PROP_EVENT_BLOCK Handle to active block (linked to the window)
LC_PROP_EVENT_HDC Device context of output window (WinAPI HDC type)
LC_PROP_EVENT_INT1 0 - event has been fired before LiteCAD drawing
1 - event has been fired after LiteCAD drawing


LiteCAD has a set of functions designed to use inside of paint event procedure: Paint mode functions